package ywpt.components.acegi.domain;

import java.util.HashSet;
import java.util.Set;

public class Operation implements java.io.Serializable{

	private static final long serialVersionUID = -1484611007443165437L;
	private Long id;
	private String operationName;
	private Integer  operationCode;
	private Operation  parent;
	private Set<Role> roles = new HashSet<Role>(0);
	private Set<Operation>children= new HashSet<Operation>(0);
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getOperationName() {
		return operationName;
	}
	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	public Integer getOperationCode() {
		return operationCode;
	}
	public void setOperationCode(Integer operationCode) {
		this.operationCode = operationCode;
	}
	public Operation getParent() {
		return parent;
	}
	public void setParent(Operation parent) {
		this.parent = parent;
	}
	public Set<Operation> getChildren() {
		return children;
	}
	public void setChildren(Set<Operation> children) {
		this.children = children;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

}
